package com.gjs.freechat.server.business;

import java.awt.image.BufferedImage;
import java.util.List;
import java.util.Map;

import com.gjs.freechat.server.component.bean.Conversation;
import com.gjs.freechat.server.component.bean.Message;
import com.gjs.freechat.server.component.bean.UserInfo;


public interface ChatSessionBusiness {
	
	public void userLoginStatusMessagePush(String userId, int status);
	public void addNewConvo(Conversation convo);
	public void startMatch(Conversation convo);
	public void startMatch(String userId, String sessionId);
	public void stopMatch(String userId, String convoId);
	public void stopAllMatch(String userId);
	public void onlineUsersCountMsgPush();
	public void removeConvo(String convoId, String userId, String partnerId);
	public void addFriendRequest(String convoId, String userId, String partnerId);
	public void rejectFriend(String convoId, String userId, String partnerId);
	public void acceptFriend(String convoId, String userId, String partnerId);
	public void updateFriendNickName(String convoId, String userId, String name);
	public Message sendImage(BufferedImage bufferedImage, Message msg, int[] imgCoords);
	public void sendMessage(Message msg);
	public void sendTextMessage(Message msg);
	public String searchAddByUsername(String userId, String username);
	public Map<String, Object> addNewSession(UserInfo userInfo, UserInfo partner);
}
